/**
 * Created by IntelliJ IDEA.
 * User: abdelkarim
 * Date: 8-Apr-2008
 * Time: 11:38:27 PM
 * To change this template use File | Settings | File Templates.
 */
class Comment {
    def static STATUS_DELETED = -1
    def static STATUS_PENDING = 0
    def static STATUS_ACTIVE = 1

     Date      dateCreated
     Date      lastUpdated
     String    body
     String    title
     Integer   rank = 0
     Person    createdBy
     Integer   status =  STATUS_ACTIVE
     static belongsTo=[blog:Content]

     static constraints={
         body(blank:false,widget:'textarea', maxSize:500)
         title(blank:false)
     }

}